package serive.imp;

import java.sql.SQLException;
import java.util.HashMap;

import dao.imp.PetDaoImp;
import dao.imp.PetStoreDaoImp;
import dao.imp.PetownerDaoImp;
import dao.imp.StoreDaoImp;
import model.Pet;
import model.PetStore;
import model.Petowner;
import model.Store;
import serive.Show;
import tool.DBHelper;


public class ShowImp implements Show{
	PetownerDaoImp own = new PetownerDaoImp();
	PetDaoImp pet = new PetDaoImp();
	StoreDaoImp store = new StoreDaoImp();
	PetStoreDaoImp buy = new PetStoreDaoImp();
	DBHelper db = new DBHelper(null);
	@Override
	public HashMap<String, Petowner> showOwn() throws SQLException {
		// TODO Auto-generated method stub
		return own.add();
		
	}

	@Override
	public HashMap<String, Pet> showPet() throws SQLException {
		// TODO Auto-generated method stub
		return pet.add();
	}

	@Override
	public HashMap<String, Store> showStore() throws SQLException {
		// TODO Auto-generated method stub
		return store.add();
	}

	@Override
	public HashMap<String, PetStore> showPetStore() throws SQLException {
		// TODO Auto-generated method stub
		return buy.add();
	}

	@Override
	public void connect() {
		// TODO Auto-generated method stub
		db.creat();
	}

	
	

	
	

}
